﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XiaLastorm.Sharpshooter.Server
{
	/// <summary>
	/// 用户发送消息给另一用户事件的数据
	/// </summary>
	public class UserToUserMessageEventArgs : EventArgs
	{
		/// <summary>
		/// 消息
		/// </summary>
		public UserToUserMessage Message { get; set; }

		/// <summary>
		/// 生成 <see cref="UserToUserMessageEventArgs"/> class 的新实例。
		/// </summary>
		/// <param name="message">消息</param>
		public UserToUserMessageEventArgs(UserToUserMessage message)
		{
			if (message == null)
				throw new ArgumentNullException("message");
			Message = message;
		}
	}
}
